//accepted
#include <cstdio>
#include <cstring>

int n, a[101], x, i, j, p;
int main(){
	//freopen("in.txt", "r", stdin);//freopen("out.txt", "w", stdout);
	scanf("%d", &n);
	
	while(n){
		memset(a, 0, sizeof(a));
		for(i=0;i<n;++i){
			scanf("%d", &x);
			a[x]++;
		}
		p=1;
		for(i=1;i<101;++i)
			if(a[i]){
				if(p){
					printf("%d",i);
					for(j=1;j<a[i];++j)printf(" %d",i);
					p=0;
				}
				else {
					for(j=0;j<a[i];++j)printf(" %d",i);
				}
			}
		printf("\n");
		scanf("%d", &n);
	}
	
	return 0;
}
